package com.beetobe.callib;

import java.util.ArrayList;
import java.util.List;

import android.content.SharedPreferences;

import com.beetobe.callib.calendar.CalendarInfo;
import com.beetobe.callib.event.EventInfo;
import com.beetobe.main.MainActivity;
import com.beetobe.main.schedule.AttendantInfo;
import com.google.api.client.googleapis.extensions.android.accounts.GoogleAccountManager;
import com.google.common.collect.Lists;

public class CalendarLibHelper {
	public static com.google.api.services.calendar.Calendar client;
	
	public static String accountName;
	public static String accountNick;
	public static String calendarId;
	public static SharedPreferences myregId;
	public static GoogleAccountManager accountManager;
	
	public static List<CalendarInfo> calednars = Lists.newArrayList();
	
	public static List<EventInfo> eventList = Lists.newArrayList();
	
	public static ArrayList<SelectDay> selectDay = new ArrayList<SelectDay>();
	public static ArrayList<SelectDay> editDay = new ArrayList<SelectDay>();
	
	public static ArrayList<String> clientList = new ArrayList<String>();
	public static ArrayList<AttendantInfo> attendantList = new ArrayList<AttendantInfo>();
	public static String newCalendarName;
	
	public static boolean isCalendarInserted = false;
	public static boolean isEventInserted = false;
	public static boolean isEventLoaded = false;
	public static boolean isFriendAdded = false;
	
	public static boolean isEventChecked = false;
	public static boolean isChecked = false;
	
	public static class SelectDay{
		int year;
		int month;
		int day;
		public SelectDay(int year, int month, int day) {
			super();
			this.year = year;
			this.month = month;
			this.day = day;
		}
		public int getYear() {
			return year;
		}
		public int getMonth() {
			return month;
		}
		public int getDay() {
			return day;
		}
	}
}

